﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication2.ChatRoom
{
    public partial class Login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            if (UserName.Text == "" && Password.Text == "")
            {
                Literal1.Text = "用户名或密码不能为空！！！";
            }
            else
            {
            Session["UN"] = UserName.Text;
            Response.Cookies["Pwd"].Value = Password.Text;
            Response.Redirect("Jump.aspx");
            }
        }
    }
}